<template>
  <div>
    <layout-base />
    <!-- <cmp-dialog
      @updateTitle="title = $event"
      :title="title"
      :dialogShow="dialogShow"
    /> -->
    <cmp-dialog
      v-bind.sync="dialog"
      @updateTitle="dialog.title = $event"
      @updateShow="dialog.dialogShow = $event"
    />
    <!--<layout-between />-->
  </div>
</template>
<script>
import { eventBus } from "../../main";
import CmpDialog from "../../components/common/dialog/CmpDialog.vue";
import LayoutBase from "../../components/layoutBase/index.vue";
import layoutBetween from "../../components/layoutBetween/index.vue";
export default {
  name: "index",
  components: {
    CmpDialog,
    LayoutBase,
    layoutBetween
  },
  data() {
    return {
      dialog: {
        title: "初始标题",
        dialogShow: false
      }
    };
  },
  created() {},
  mounted() {
    console.log("eventBus=>", eventBus);
    eventBus.$emit("bus", 2);
    // this.getData();
  },
  computed: {},
  methods: {
    // async getData() {
    //   let result = await this.$request("/user");
    //   console.log(result);
    // },
  }
};
</script>

<style lang="scss"></style>
